package com.example.hello;

import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;

public class Heading extends Label {

    public Heading(String heading, int size) {
        setValue("<h" + size + ">" + heading + "</h" + size + ">");
        setWidth(null);
        setContentMode(ContentMode.HTML);
    }

    public String getHeading() {
        return getValue();
    }

    public void setHeading(String heading) {
        setValue(heading);
    }

    public String toString() {
        return getValue();
    }

}